﻿namespace MicroCloud.Entity.BatchConfiguration
{
    /// <summary>
    /// 数据库表相关常量
    /// </summary>
    public class DataTableConstants
    {
        #region 常量
        /// <summary>
        /// String类型主键默认长度
        /// </summary>
        public const int StringKeyDefaultLength = 128;

        /// <summary>
        /// String类型属性默认长度
        /// </summary>
        public const int StringDefaultLength = 512;

        /// <summary>
        /// Decimal类型属性默认精度
        /// (值总长度)
        /// </summary>
        public const int DecimalDefaultPrecision = 22;

        /// <summary>
        /// Decimal类型属性默认刻度
        /// (小数位数)
        /// </summary>
        public const int DecimalDefaultScale = 10;

        /// <summary>
        /// Decimal类型属性最小精度
        /// (值总长度)
        /// </summary>
        public const int DecimalMinPrecision = 1;

        /// <summary>
        /// Decimal类型属性最小刻度
        /// (小数位数)
        /// </summary>
        public const int DecimalMinScale = 0;

        /// <summary>
        /// Decimal类型属性最大精度
        /// (值总长度)
        /// </summary>
        public const int DecimalMaxPrecision = 38;
   
        #endregion

    }
}